package com.xiaoKe.zhonghzu.global.base;

import android.os.Bundle;

/**
 * @ProjectName : app
 * @Author : Shijingna
 * @Time : 2021/4/13 10:16 AM
 * @Description : 管理各种fragment的跳转
 */
public enum VeinRouter implements RouterConfig {
    //page start=====================================================================================================================
    CHANGEPASSWORDFRAGMENT("修改密码", "com.xiaoKe.zhonghzu.ui.mine.ChangePassWordFragment", null),
    PHONEPASSWORDFRAGMENT("修改手机号", "com.xiaoKe.zhonghzu.ui.mine.PhonePasswordFragment", null),
    REGARDFRAGMENT("系统设置", "com.xiaoKe.zhonghzu.ui.mine.RegardFragment", null),
//    GROWTHDETAILS("数据采集-生长性状", "com.xiaoKe.zhonghzu.ui.data.GrowthDetailsFragment", null),
    REPRODUCTIVEDETAILS("数据采集-繁殖性状", "com.xiaoKe.zhonghzu.ui.fzxz.ReproductiveDetailsFragment", null),
//    CARCASSDETAILS("数据采集-胴体性状", "com.xiaoKe.zhonghzu.ui.data.CarcassDetailsFragment", null),
//    MUSCLEDETAILS("数据采集-肌肉品质", "com.xiaoKe.zhonghzu.ui.data.MuscleDetailsFragment", null),
//    SEMENDETAILS("数据采集-精子品质", "com.xiaoKe.zhonghzu.ui.data.SemenDetailsFragment", null),
//    GROWTHADDFRAGMENT("数据采集-生长性状", "com.xiaoKe.zhonghzu.ui.gather.GrowthAddFragment", null),
    REPRODUCTIVEADDFRAGMENT("数据采集-繁殖性状", "com.xiaoKe.zhonghzu.ui.fzxz.ReproductiveAddFragment", null),
    DTJFRAGMENT("待提交单据", "com.xiaoKe.zhonghzu.ui.fzxz.DtjFragment", null),
    DTJDETAILSFRAGMENT("待提交单据-详情", "com.xiaoKe.zhonghzu.ui.fzxz.DtjDetailsFragment", null),
//    CARCASSADDFRAGMENT("数据采集-胴体性状状", "com.xiaoKe.zhonghzu.ui.gather.CarcassAddFragment", null),
//    MUSCLEADDFRAGMENT("数据采集-肌肉品质", "com.xiaoKe.zhonghzu.ui.gather.MuscleAddFragment", null),
//    SEMENADDFRAGMENT("数据采集-精子品质", "com.xiaoKe.zhonghzu.ui.gather.SemenAddFragment", null),


    //endregion
    ;

    //page end=================¬====================================================================================================
    private String classReference;
    private String title;
    private Bundle bundleExtra;
    private Object object;

    VeinRouter(String title, String classReference, Bundle bundle) {
        this.title = title;
        this.bundleExtra = bundle;
        this.classReference = classReference;
    }

    public Bundle getBundle() {
        return new Bundle();
    }

    public RouterConfig setBundle(Bundle bundle) {
        this.bundleExtra = bundle;
        return this;
    }

    public VeinRouter setClassReference(String classReference) {
        this.classReference = classReference;
        return this;
    }

    public VeinRouter setTitle(String title) {
        this.title = title;
        return this;
    }

    public VeinRouter setBundleExtra(Bundle bundleExtra) {
        this.bundleExtra = bundleExtra;
        return this;
    }
    @Override
    public String getTitle() {
        return title;
    }


    @Override
    public Bundle getBundleExtra() {
        return bundleExtra;
    }

    @Override
    public String getClassReference() {
        return classReference;
    }


}